package Day02;

import java.awt.*;

//继承
public class blue_screen extends Frame {

    public void start() throws InterruptedException {
        setSize(1536, 864);
        setUndecorated(true); //取消装饰
        setAlwaysOnTop(true);  //置顶
        setVisible(true);  //是否显示
        for (;;){  //背景循环
            setBackground(Color.blue);   //背景色
            Thread.sleep(1000);
            setBackground(Color.BLACK);   //背景色
            Thread.sleep(1000);
        }
    }

    //来自于Frame Graphics 画笔
    @Override
    public void paint(Graphics g) {
        g.setFont(new Font("霸天牌字体", 1, 22));  //给画笔定义大小
        g.setColor(Color.red);  //给画笔定义颜色
        g.drawString("Microsoft WIndows [版本 1.43.56]", 10, 30);
        g.drawString("版权所有 C 霸天全球黑客系统，控制", 10, 70);
        g.drawString("C://User//mine:", 10, 110);
    }

    //主方法
    public static void main(String[] args) throws InterruptedException {
        new blue_screen().start();
    }
}
